import http from "@/public/js/http.js";
//获取所有表基本信息
export const getTables = (data) => {
    return http("/init/get/tables")
};
//生成表
export const createTable = (data) => {
    return http({
        url: '/init/table/create',
        method: 'post',
        data   //data={name: "tabName"}
    })
};
//清空表
export const truncateTable = (data) => {
    return http({
        url: '/init/table/truncate',
        method: 'post',
        data
    })
};
// //初始化所有表
// export const initAllTables = () => {
//     return http({
//         url: "/init/table/createAll",
//         method: "get",
//     })
// }